package kelisPkg.loadPackage
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Loader;
	import flash.events.Event;
	
	import starling.textures.Texture;
	
	public class ImgLoader extends Loader
	{
		public function ImgLoader()
		{
			super();
			this.contentLoaderInfo.addEventListener(Event.COMPLETE,_loadComplete)
		}
		public function get texture():Texture{
			if(contentLoaderInfo==null)return null;
			var texturex:Texture =Texture.fromBitmap(this.content as Bitmap)
			return texturex

		}
		private function _loadComplete(e:Event):void
		{
			this.dispatchEvent(new Event(Event.COMPLETE));
		}
		
	}
}